﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FrameworkLib.Utilities
{
    public class Singleton<T> where T : class, new()
    {
        private Singleton() { }

        public static T Instance
        {
            get
            {
                return SingletonCreator.instance;
            }
        }

        private class SingletonCreator
        {
            static SingletonCreator() { }

            internal static readonly T instance = new T();
        }
    }

}
